package com.walt.zhong.common.webview

import android.content.Context
import androidx.compose.runtime.Composable
import androidx.fragment.app.Fragment

interface IWebViewService {
    fun startWebViewActivity(
        context: Context,
        url:String,
        title:String="WebView Page",
        showActionBar:Boolean = true,
        needRefresh:Boolean = true
    )

    fun getWebViewFragment(
        url:String,
        needRefresh: Boolean = true
    ):Fragment


    @Composable
    fun ComposeWebView(
        url:String,
        title:String = "ComposeWebView",
        needRefresh: Boolean = true
    )

    fun openLocalWebPage(context: Context)
}